package org.dydl.model.system;
import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * ORDERDETAIL
 * 
 * @author 张华城
 * @version 1.0.0 2017-12-11
 */
@Entity
@Table(name = "orders_detail")
public class OrderDetail implements Serializable {
    /** 版本号 */
    private static final long serialVersionUID = 7436226563251109447L;

    /** id */
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private Long id;

    /** uuid */
    
    @GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
    private String uuid;

    /** 订单号 */
    private String orderNo;

    /** 商品资料 */
    private String goodsUuid;

    /** 品名 */
    private String name;

    /** PN 商品编号*/
    private String pn;

    /** SKU */
    private String sku;

    /** 税率 */
    private String taxRate;

    /** EAN/UPC码 */
    private String eanUpc;

    /** 数量 */
    private Integer quantity;

    /** 单价 */
    private Double unitPrice;

    /** 总价 */
    private Double amount;

    /** 币制 */
    private String currency;

    /** 交付日期 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private String deliveryDate;
    
    /** 规格 */
    private String model;
    
    /** 计量单位 */
    private String unit;
    
    
	/** 已生产 */
    private Integer already = 0;
    
    /** 已出库 */
    private Integer alreadyOut =0;
    
    /** 7000号*/
    private Integer noSevenThousand;
    
    
    public Integer getNoSevenThousand() {
		return noSevenThousand;
	}

	public void setNoSevenThousand(Integer noSevenThousand) {
		this.noSevenThousand = noSevenThousand;
	}

	public Integer getAlready() {
		return already;
	}

	public void setAlready(Integer already) {
		this.already = already;
	}

	public Integer getAlreadyOut() {
		return alreadyOut;
	}

	public void setAlreadyOut(Integer alreadyOut) {
		this.alreadyOut = alreadyOut;
	}
	
    public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}


	/**
     * 获取id
     * 
     * @return id
     */
    public Long getId() {
        return this.id;
    }

    /**
     * 设置id
     * 
     * @param id
     *          id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取uuid
     * 
     * @return uuid
     */
    public String getUuid() {
        return this.uuid;
    }

    /**
     * 设置uuid
     * 
     * @param uuid
     *          uuid
     */
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    /**
     * 获取订单号
     * 
     * @return 订单号
     */
    public String getOrderNo() {
        return this.orderNo;
    }

    /**
     * 设置订单号
     * 
     * @param orderNo
     *          订单号
     */
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * 获取商品资料
     * 
     * @return 商品资料
     */
    public String getGoodsUuid() {
        return this.goodsUuid;
    }

    /**
     * 设置商品资料
     * 
     * @param goodsUuid
     *          商品资料
     */
    public void setGoodsUuid(String goodsUuid) {
        this.goodsUuid = goodsUuid;
    }

    /**
     * 获取品名
     * 
     * @return 品名
     */
    public String getName() {
        return this.name;
    }

    /**
     * 设置品名
     * 
     * @param name
     *          品名
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取PN
     * 
     * @return PN
     */
    public String getPn() {
        return this.pn;
    }

    /**
     * 设置PN
     * 
     * @param pn
     *          PN
     */
    public void setPn(String pn) {
        this.pn = pn;
    }

    /**
     * 获取SKU
     * 
     * @return SKU
     */
    public String getSku() {
        return this.sku;
    }

    /**
     * 设置SKU
     * 
     * @param sku
     *          SKU
     */
    public void setSku(String sku) {
        this.sku = sku;
    }

    /**
     * 获取税率
     * 
     * @return 税率
     */
    public String getTaxRate() {
        return this.taxRate;
    }

    /**
     * 设置税率
     * 
     * @param taxRate
     *          税率
     */
    public void setTaxRate(String taxRate) {
        this.taxRate = taxRate;
    }

    /**
     * 获取EAN/UPC码
     * 
     * @return EAN/UPC码
     */
    public String getEanUpc() {
        return this.eanUpc;
    }

    /**
     * 设置EAN/UPC码
     * 
     * @param eanUpc
     *          EAN/UPC码
     */
    public void setEanUpc(String eanUpc) {
        this.eanUpc = eanUpc;
    }

    /**
     * 获取数量
     * 
     * @return 数量
     */
    public Integer getQuantity() {
        return this.quantity;
    }

    /**
     * 设置数量
     * 
     * @param quantity
     *          数量
     */
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取单价
     * 
     * @return 单价
     */
    public Double getUnitPrice() {
        return this.unitPrice;
    }

    /**
     * 设置单价
     * 
     * @param unitPrice
     *          单价
     */
    public void setUnitPrice(Double unitPrice) {
        this.unitPrice = unitPrice;
    }

    /**
     * 获取总价
     * 
     * @return 总价
     */
    public Double getAmount() {
        return this.amount;
    }

    /**
     * 设置总价
     * 
     * @param amount
     *          总价
     */
    public void setAmount(Double amount) {
        this.amount = amount;
    }

    /**
     * 获取币制
     * 
     * @return 币制
     */
    public String getCurrency() {
        return this.currency;
    }

    /**
     * 设置币制
     * 
     * @param currency
     *          币制
     */
    public void setCurrency(String currency) {
        this.currency = currency;
    }

    /**
     * 获取交付日期
     * 
     * @return 交付日期
     */
    public String getDeliveryDate() {
        return this.deliveryDate;
    }

    /**
     * 设置交付日期
     * 
     * @param deliveryDate
     *          交付日期
     */
    public void setDeliveryDate(String deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

}